package cn.lstf666.sprinboot.filter;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import java.io.IOException;

@WebFilter("/MyFilter")
public class MyFilter implements Filter {


    public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws ServletException, IOException {
        System.out.println("----------进入过滤器----------");
        chain.doFilter(req,resp);
    }


}
